
var aArray = new Array( 4 );


for( var i = 0; i < aArray.length; i = i + 1 )
{
	aArray[ i ] = 0;
}




function B()
{
	aArray[ 0 ] = aArray[ 0 ] +1;
	document.getElementById( "picture" ).src = "images/Brazil2.jpg";
	document.getElementById( "9orh" ).src = "images/Brazil1.jpg";
	document.getElementById( "picture" ).alt = "B";	
	document.getElementById( "picture" ).title = "statue";				
	document.getElementById( "9orh" ).alt = "B";	
	document.getElementById( "9orh" ).title = "The flag of Brazil";
	document.getElementById( "p" ).innerHTML = "According to infoplease website consider as the largest nation in South America in term of its area wide and its population.Brazial is the only nation in South America its offical language is not Spaish. Brazil also is famous in terms of the natural beuaty."
	}

function A()
{
	
	aArray[ 1 ] = aArray[ 1 ] +1;
	document.getElementById( "picture" ).src = "images/Argentina2.jpg";
	document.getElementById( "9orh" ).src = "images/Argentina1 .jpg";
	document.getElementById( "picture" ).alt = "AR";	
	document.getElementById( "picture" ).title = "Statue";				
	document.getElementById( "9orh" ).alt = "AR";	
	document.getElementById( "9orh" ).title = "Argentina flag";
	document.getElementById( "p" ).innerHTML ="The second in South America to brazil in size and population is Argentina.The most popoular sports is soccer, they have won the FIFA culb two times." 
}
function Co()
{
	aArray[ 2 ] = aArray[ 2 ] +1;
	document.getElementById( "picture" ).src = "images/Colombia2.jpg";
	document.getElementById( "9orh" ).src = "images/Colombia1.gif";
	document.getElementById( "picture" ).alt = "Co";	
	document.getElementById( "picture" ).title = "Nature";				
	document.getElementById( "9orh" ).alt = "Co";	
	document.getElementById( "9orh" ).title = "Colobia Flag";
	document.getElementById( "p" ).innerHTML ="Colombia is borded on the northwest by Penama, on the east by Venezuela and Brazil, and on the southwest by Peru and Ecuador."
}
function Ur()
{
	aArray[ 3 ] = aArray[ 3 ] +1;
	document.getElementById( "picture" ).src = "images/Uraguay2.jpg";
	document.getElementById( "9orh" ).src = "images/Uraguay1.gif";
	document.getElementById( "picture" ).alt = "Ur ";	
	document.getElementById( "picture" ).title = "Nature";				
	document.getElementById( "9orh" ).alt = "Nature";	
	document.getElementById( "9orh" ).title = "Uraguay flag";
	document.getElementById( "p" ).innerHTML ="Uraguay is located to the east cost of South America south of Brazil and east of Argentina.soccer is the most popoular sport as well as the rest of countries.The internatinal team won the FIFA world cup two times."
}
function Counter()
{
		
	if( aArray[ 0 ] > 0 && aArray[ 1 ] > 0 && aArray[ 2 ] > 0 
			&& aArray[ 3 ] > 0 )
	{
		alert( "CONGRATULATIONS! " + aArray);
		window.location = "Congrats.html"	;
	}
	else
	{
		alert( " the course is incomplete " );
	}
}
